<?php

declare(strict_types=1);

namespace App\Command;

use App\Constants\AdRequestEventTypeEnum;
use App\Constants\ErrorCode;
use App\Constants\OppoEventTypeEnum;
use App\Controller\ClickMonitor\OppoController;
use App\Model\Business\AppAdAccount;
use App\Utils\OppoUtil;
use Carbon\Carbon;
use Hyperf\Command\Command as HyperfCommand;
use Hyperf\Command\Annotation\Command;
use Hyperf\Di\Annotation\Inject;
use Psr\Container\ContainerInterface;

#[Command(name: "test")]
class TestCommand extends HyperfCommand
{
    #[Inject]
    protected OppoUtil $oppoUtil;

    public function handle(): void
    {
        var_dump(OppoEventTypeEnum::values());
        var_dump(OppoEventTypeEnum::inValue(20));
        // var_dump(Carbon::now()->toDateTimeString());
        // var_dump(date('Y-m-d H:i:s'));
//        $a = $this->oppoUtil->getAdDetail('1000533531', '9d3b9e983eb94b8881eb848d0e8a02b1',
//            '9faef183b3954669a14dcaf82a8bb548', '592738901');
////
//        var_dump($a);
//
//        $account = AppAdAccount::find(1);
//
//        var_dump($account->params);

    }
}
